package com.raos.example.redisclient.client;

/**
 * 自定义 redis 客户端连接测试
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/7/22 21:01
 */
public class MainClient {

    public static void main(String[] args) {

        /**
         * 此方式仅支持无需密码redis
         */
        CustomerRedisClient customerRedisClient = new CustomerRedisClient("192.168.235.130", 6380);

        System.out.println(customerRedisClient.set("customer", "Define"));

        System.out.println(customerRedisClient.get("customer"));
    }

}
